package jmetal.problems.usina;

import jmetal.util.JMException;
import hidra.jmetal.core.Problem;
import hidra.jmetal.core.Solution;
import hidra.jmetal.core.Variable;

public class Usina extends Problem {
	
	@Override
	public void evaluate(Solution solution) throws JMException {

		double valor1 = 0;
		double valor2 = 0;
		
		Variable[] variaveis = solution.getDecisionVariables();
		double dVar[] = new double[variaveis.length];
		
		for (int i = 0; i < dVar.length; i++) {
			dVar[i] = variaveis[i].getValue();
		}
		
		valor1 = calcularTurbinagem(dVar);
		valor2 = calcularVolume(dVar);
		
		solution.setObjective(0, valor1);
		solution.setObjective(1, valor2);
		
	}

	private double calcularVolume(double[] dVar) {
		return 0;
	}

	private double calcularTurbinagem(double[] dVar) {
		return 0;
	}
	
}
